package com.zbkj.service.dao.mszs;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.common.model.mszs.MszsRoom;
import com.zbkj.common.request.mszs.MszsIndexRequest;
import com.zbkj.common.request.mszs.MszsRoomSelectRequest;
import com.zbkj.common.response.mszs.MszsRoomResponse;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 民宿助手-酒店房间表-Mapper接口
 * @author lingfe
 */
@Mapper
public interface MszsRoomDao extends BaseMapper<MszsRoom> {

    /**
     * 根据酒店ID 获取房间列表
     * @param request
     * @return
     */
    List<MszsRoomResponse> roomList(MszsIndexRequest request);

    /**
     *  所有房间列表
     * @param request
     * @return
     */
    List<MszsRoomResponse> hotelRoomList(MszsRoomSelectRequest request);

    /**
     *  未入住所有房间列表
     * @param request
     * @return
     */
    List<MszsRoomResponse> notCheckInList(MszsRoomSelectRequest request);

    /**
     *  已入住所房间记录
     * @param request
     * @return
     */
    List<MszsRoomResponse> checkInList(MszsRoomSelectRequest request);


    /**
     *  根据房间id获取详情
     * @param id
     * @return
     */
    MszsRoomResponse roomDetails(Integer id);

}
